<layout name="../../../Data/layout/master"/>
<ul class="breadcrumb no-border no-radius b-b b-light pull-in">
    <li><a href="index.html"><i class="fa fa-home"></i> 后台首页</a></li>
    <li><a href="#">模块</a></li>
    <li class="active">模块列表</li>
</ul>
<div class="m-b-md"><h3 class="m-b-none">模块列表</h3></div>
<div class="row">

    <div class="col-sm-12">
        <section class="panel panel-default">
            <header class="panel-heading font-bold">模块列表</header>
            <div class="panel-body">
                <table class="table table-hover">
                    <thead>
                    <tr>
                        <th>模块名称</th>
                        <th>模块标识</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <volist name="modules" id="vo">
                    <tr>
                        <td>{$vo.title}</td>
                        <td>{$vo.name}</td>
                        <td>
                            <if condition="in_array($vo['name'],$hasModuleList)">
                                <a href="{:U('uninstall',['name'=>$vo['name']])}" class="btn btn-danger btn-sm">卸载</a>
                            <else/>
                                <a href="{:U('install',['name'=>$vo['name']])}" class="btn btn-success btn-sm">安装</a>
                            </if>
                        </td>
                    </tr>
                    </volist>
                    </tbody>
                </table>
            </div>
        </section>
    </div>

</div>
<script>
    function controller($scope, $, _){
    }
</script>